#ifndef CLICKEDLABEL_H
#define CLICKEDLABEL_H
#include <QLabel>
#include <QWidget>
#include <QEvent>
#include <QMouseEvent>

class ClickedLabel : public QLabel
{
    Q_OBJECT
signals:
    void Clicked(ClickedLabel* clicked);
public:
    ClickedLabel(QWidget *parent=0): QLabel(parent),m_str("")
    {
        setText(m_str);
    }
    ~ClickedLabel(){};
    void setFlag(int value){m_Flag=value;}
protected:
    void mouseReleaseEvent(QMouseEvent *);
    void mousePressEvent(QMouseEvent *);

private:
    QString m_str;
    int m_Flag;
};
#endif // CLICKEDLABEL_H
